package com.linln.admin.app.constants;

public class AppConstants {
    /**
     * git版本操作时的工作目录
     */
    public static final String GIT_WORK_DIR = "/gitbranch/workdir";

    /**
     * 逻辑是：值为1
     */
    public static final String YES = "1";
    /**
     * 逻辑否：值为0
     */
    public static final String NO = "0";

    /**
     * 任务状态：待执行
     */
    public static final Integer TASK_STATUS_NEW = 1;
    /**
     * 任务状态：执行成功
     */
    public static final Integer TASK_STATUS_SUCC = 2;
    /**
     * 任务状态：执行失败
     */
    public static final Integer TASK_STATUS_FAIL = 3;

    /**
     * 代码仓库类型：git
     */
    public static final String REPO_TYPE_GIT = "1";


    /**
     * 代码分支合并状态：0-待合并；
     */
    public static final String VERSION_MERGE_STATUS_NOMAL = "0";
    /**
     * 代码分支合并状态：1-已合并；
     */
    public static final String VERSION_MERGE_STATUS_AUTO_MERGED = "1";
    /**
     * 代码分支合并状态：2-有冲突；
     */
    public static final String VERSION_MERGE_STATUS_CONFLICT = "2";
    /**
     * 代码分支合并状态：3-已手动合并
     */
    public static final String VERSION_MERGE_STATUS_MANUAL_MERGED = "3";


    /**
     * dev分支开头
     */
    public static final String BRANCH_DEV_PREFIX = "dev-";
    /**
     * release分支开头
     */
    public static final String BRANCH_RELEASE_PREFIX = "release-";
    /**
     * hotfix分支开头
     */
    public static final String BRANCH_HOTFIX_PREFIX = "hotfix-";
}
